NOTE: This Technical Q&A has been
retired. Please see the Technical Q&As
page for current documentation.![]() ![]() |
Q: I'm trying to color-separate arbitrary shapes. For example, to make the cyan
plate, I want to take the shape's color, convert it to
This is fairly easy to do for simple shapes, but bitmaps are going to give me
problems. I need to find a way to convert a bitmap from one color space to
another without changing its visual appearance (in other words, the pixel
values have to change to reflect a Is there a way to do this without traversing the whole bitmap "by hand"? A: Using a transfer mode will do the trick for bitmaps, but it probably won't be all that speedy (it also probably won't be any worse than your slow alternative of traversing the bitmap by hand). Transfer modes allow you to specify 5x4 matrices that specify which color component of the source gets mapped to which color component of the destination. The easiest way to set up a transfer mode is to get the existing mode and then modify it as follows: In the
See Also:
|
Developer Documentation | Technical Notes | Development Kits | Sample Code |